package com.book.service;

import com.book.entity.BookEntity;
import com.book.entity.CartEntity;
import com.fasterxml.jackson.core.JsonProcessingException;

public interface CartService {

    CartEntity addCart(BookEntity bookEntity,Long userId) throws JsonProcessingException;

    CartEntity updateCart(Long bookId,Integer count,Long userId);

    CartEntity getCart(Long userId);

    CartEntity deleteCart(Long userId,Long bookId);

    void clearCart(Long userId);

}
